﻿package kliment.controls {
	import flash.display.MovieClip;
	import kliment.display.MovieClipButton;
	/**
	 * ...
	 * @author	Kliment
	 * @version	0.0.2
	 * 
	 * class name: kliment.controls.ScrollerBox
	 */
	public class ScrollerBox {
		protected var _target_mc:MovieClip;
		private var _space_btn:MovieClipButton;
		private var _seeker_btn:MovieClipButton;
		private var _up_btn:MovieClipButton;
		private var _down_btn:MovieClipButton;
		
		public var scroller:Scroller;
		
		public function ScrollerBox(target_mc:MovieClip, seeker_mc:MovieClipButton = null, space_mc:MovieClipButton = null, up_mc:MovieClipButton = null, down_mc:MovieClipButton = null) {
			_target_mc = target_mc;
			
			_space_btn = space_mc || _target_mc.space_mc;
			_seeker_btn = seeker_mc || _target_mc.seeker_mc;
			_up_btn = up_mc || _target_mc.up_mc;
			_down_btn = down_mc || _target_mc.down_mc;
			
			if (_seeker_btn) {
				_seeker_btn.x = _space_btn.x;
				_seeker_btn.y = _space_btn.y;
			}
		}
		
		public function get visible():Boolean { return _target_mc.visible; }
		public function set visible(value:Boolean):void {
			_target_mc.visible = value;
		}
		
		public function get down_btn():MovieClipButton { return _down_btn; }
		public function set down_btn(value:MovieClipButton):void {
			_down_btn = value;
		}
		
		public function get up_btn():MovieClipButton { return _up_btn; }
		public function set up_btn(value:MovieClipButton):void {
			_up_btn = value;
		}
		
		public function get seeker_btn():MovieClipButton { return _seeker_btn; }
		public function set seeker_btn(value:MovieClipButton):void {
			_seeker_btn = value;
		}
		
		public function get space_btn():MovieClipButton { return _space_btn; }
		
	}

}